home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Handling ^Z, *without* MiNTlibs
- Date: Wed, 8 Jun 1994 01:45:53 +0200 (MET DST)
- In-Reply-To: <9406062249.AA16027@amazon.cs.duke.edu> from "Scott Bigham" at Jun 6, 94 06:49:07 pm
- From: hohmuth@inf.tu-dresden.de (Michael Hohmuth)
- Mime-Version: 1.0
-
- > [...] One of the problems with the compiler is that it does
- > not recognized ^Z; CTRL-ALT-Z is required to suspend the compiler. Now,
- > according to some of the old MiNT docs, MiNT should handle ^Z properly
- > if the process is doing I/O in cooked mode, from which I infer that the
- > compiler is doing I/O in raw mode. My goal, then, is to figure out how
- > to switch I/O to cooked mode, _without_ using any MiNTlibs functions
- > [for obvious reasons ;) ], so I can pass this on to Jerry. Any
- > advice?
-
- If I remember correctly, a terminal is automatically put into raw mode
- when accessing it with BIOS functions, and into cooked mode when using
- GEMDOS functions. One can also explicitly put a connections into cooked
- mode by resetting the RAW bit in the terminal control flags using
- Fcntl(fd, &sgb, TIOCSETP) (see the Fcntl(2) manual page, and take a look
- at mntlib's ioctl.h for definitions of symbolic constants for terminal
- modes).
-
- Michael
- --
- Email: hohmuth@inf.tu-dresden.de
- WWW: http://www.inf.tu-dresden.de/~mh1/
-